package com.nsn.das.midas.model.mml.letter;

import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.JoinTable;
import javax.persistence.OneToMany;

import com.nsn.das.midas.model.mml.data.MMLClassData;

@Entity
@DiscriminatorValue("class_letter")
public class MMLClassLetter extends MMLLetter{
	@OneToMany(fetch=FetchType.LAZY,mappedBy="classLetter")
	private List<MMLGroupLetter> groupLetters;
	
	@OneToMany(fetch=FetchType.LAZY,mappedBy="classLetter")
	private List<MMLClassData> classDatas;
	
	public List<MMLGroupLetter> getGroupLetters() {
		return groupLetters;
	}
	
	public void setGroupLetters(List<MMLGroupLetter> groupLetters) {
		this.groupLetters = groupLetters;
	}

	public List<MMLClassData> getClassDatas() {
		return classDatas;
	}

	public void setClassDatas(List<MMLClassData> classDatas) {
		this.classDatas = classDatas;
	}
}
